package org.crazyit.activiti_d1._3_CreateInputStream;

import org.activiti.engine.ProcessEngineConfiguration;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class CreateInputStream_2 {

    public static void main(String[] args) throws FileNotFoundException {

        //1. 创建文件
        File file = new File("c4/target/classes/directory1/input-stream2.xml");
        System.out.println(file.getAbsolutePath().toString());

        //2. 得到文件输入流
        FileInputStream fis = new FileInputStream(file);

        //3. 使用createProcessEngineConfigurationFromInputStream 方法创建ProcessEngineConfiguration
        ProcessEngineConfiguration config = ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(fis,"test");

    }

}
